import request from '@/utils/request'

export function getInfo(paran) {
  return request({
    url: '/purchaseFile/getInfo',
    method: 'get',
    params: paran
  })
}
export function getjgInfo(paran) {
  return request({
    url: '/purchaseFile/getjgInfo',
    method: 'get',
    params: paran
  })
}

export function getId() {
  return request({
    url: '/purchaseFile/getId',
    method: 'get'
  })
}

export function save(data) {
  return request({
    url: '/purchaseFile/save',
    method: 'post',
    params: data
  })
}
// 下载文件
export function downloadById(data) {
  return request({
    url: '/purchaseFile/downloadById/flow',
    method: 'post',
    params: data,
    responseType: 'blob'
  })
}
